package interfaces

import (
	"gitee.com/captials-team/ubdframe/src/domain/dto/cmddata"
	"gitee.com/captials-team/ubdframe/src/pkg/wsserver"
)

type IWebsocketWorker interface {
	Name() string
	Receive(cmd *cmddata.ClientCmd) //接收消息处理

	Online(client *wsserver.Client) //client 上线
	Close(client *wsserver.Client)  //client close

	//NeedAccredit 是否需要授权检查
	NeedAccredit(client *wsserver.Client) bool
}
